﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WXFramework.Model
{
    public  class WXJsonResultBase
    {

        private const string successmsg = "ok,created,updated";

        public string errcode { get; set; }

        public string errmsg { get; set; }

        public bool IsSucess
        {
            get
            {
                return successmsg.Split(',').Contains(errmsg);
            }
        }
    }
}
